import request from "./request/index.js";

export async function addInventoryDetail(data) {
  try {
    const res = await request.post("/inventory-detail", data);
    return res.data;
  } catch (err) {
    return Promise.reject(err);
  }
}

export async function listInventoryDetails(data) {
  try {
    const res = await request.post('/inventory-detail/list', data)
    return res.data
  } catch (err) {
    return Promise.reject(err)
  }
}

export async function listInventoryChanges(data) {
  try {
    const res = await request.post('/inventory-detail/change/list', data)
    return res.data
  } catch (err) {
    return Promise.reject(err)
  }
}


